package com.study.util;

import com.study.model.User;
import org.apache.shiro.SecurityUtils;

/**
 * @author king james
 * @create 2021-09-06-{TIME}
 * 获取登录用户信息
 */
public class getUserInfo {
    public User user= (User) SecurityUtils.getSubject().getPrincipal();
    public String getUserName(){
        return user.getUsername();
    }
    public String getPassword(){
        return user.getPassword();
    }
}
